<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>立体呈现</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        ul {
            margin: 100px;
            list-style: none;
        }

        ul li {
            width: 120px;
            height: 35px;
        }

        .box {
            width: 120px;
            height: 35px;

        }

        .front,
        .bottom {
            width: 120px;
            height: 35px;
            position: absolute;
            left: 0;
            top: 0;

        }

        .front {
            background-color: pink;
        }

        .bottom {
            background-color: skyblue;
        }
    </style>
</head>

<body>
    <!-- 目标： 使用transform-style: preserve-3d呈现立体图形 -->
    <ul>
        <li>
            <div class="box">
                <div class="front"></div>
                <div class="bottom"></div>
            </div>
        </li>
    </ul>
</body>

</html>